<crm-main-nav  nav-c="work" page-title="所有人日报"></crm-main-nav>
  <!-- 面包屑 -->
	<div class="container">
		<ol class="breadcrumb">
			<li>CRM系统</li>
			<li>销售日报</li>
			<li class="active">所有人日报</li>
		</ol>
	</div>
  <!-- 内容 -->
<div ng-controller="workEverybodyController">  
<crm-panel title="所有人日报">
	<form class="form-horizontal" role="form" ng-submit="searchWorkForm()">
		<div class="form-group">
			<label class="col-sm-1 control-label">分公司：</label>
			<div class="col-sm-2">
				<company-select current-id="workList.user_company_id"></company-select>
      		</div>
			<label class="col-sm-1 control-label">销售人员：</label>
			<div class="col-sm-2">
				<user-select current-id="workList.user_id" company-id="{{workList.user_company_id}}"></user-select>
      		</div>
			<label class="col-sm-1 control-label">日期：</label>
			<div class="col-sm-2" date-input style-date="YYYY-MM-DD" get-date="workList.time"></div>
			<div class="col-sm-1">
				<button type="submit" class="btn btn-primary">搜索</button>
			</div>
		</div>
		<div class="alert alert-warning" role="alert">注：搜索以往月份时，“本月至今实际上门量”和“本月至今应上门量”代表该月份整月的数据
		</div>
	</form>
</crm-panel>
		<!-- 日报 -->
<crm-panel current-id="workList.user_company_id" get-date="workList.month">	
	<div class="alert alert-warning" role="alert">注：计划上门量只从个人商机列表统计；上门登记后，不论该商机是在个人商机、成功商机或失败商机列表中，都将计入实际上门量。
	</div>
	<table class="table table-bordered" id="work_list" ng-show="work_list.length>0">
		<thead>
			<tr>
				<th>序号</th>
				<th>销售人员</th>
				<th>日报内容</th>
				<!-- <th>实际上门量</th>
				<th>上门完成率</th>
				<th>实际签约量</th>
				<th>实际成交量</th>
				<th>本月至今实际上门量</th>
				<th>本月至今应上门量</th> -->
			</tr>
		</thead>
		<tbody>
			<tr ng-repeat="v in work_list track by $index">
				<td>{{v.id}}</td>
				<td><a href="#/Work/work_details/{{v.id}}">{{v.name}}</a></td>
				<td>{{v.daily_content | overflowEllipsisFilter:9}}</td>
				<!-- <td>{{v.reality_quantity}}</td>
				<td>50%</td>
				<td>{{v.reality_sign}}</td>
				<td>{{v.success_deal}}</td>
				<td>20</td>
				<td>77</td> -->
			</tr>
			
		</tbody>
	</table>
</crm-panel>
		<!--会议-->
<crm-panel title="会议记录">	
	<form class="form-horizontal" role="form" name="add_meeting_content" ng-submit="addMeetingContent(add_meeting_content.$valid)" novalidate>
		<div class="form-group">
			<label class="col-sm-1 control-label">时间：</label>
      		<div class="col-sm-2" date-input style-date="YYYY-MM-DD" get-date="addMeetingForm.time"></div>
		</div>
		<div class="form-group">
			<label class="col-sm-1 control-label">会议内容：</label>
			<div class="col-sm-11">
				<textarea class="form-control" rows="3" name="daily_content" ng-model="addMeetingForm.daily_content" required></textarea>
			</div>
		</div>
		<div class="form-group">
			<div class="col-sm-offset-1 col-sm-10">
			  <button type="submit" class="btn btn-primary">添加</button>
			</div>
		</div>
	</form>
</crm-panel>
</div>